
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class GuildescortPathCfg : public ManualSingleton <GuildescortPathCfg>
{
	friend ManualSingleton <GuildescortPathCfg>;
public:
	GuildescortPathCfg();
	~GuildescortPathCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const GuildescortPathCfgInfo *GetGuildescortPathCfgInfo(int32_t pathProjectId);
	const GuildescortPathCfgMap *GetGuildescortPathCfgMap() { return &m_GuildescortPathCfgMap; }
private:
	GuildescortPathCfgMap m_GuildescortPathCfgMap;
};

#define  g_MakeGuildescortPathCfgTable() (GuildescortPathCfg::Instance())
#define  g_GetGuildescortPathCfgTable() (GuildescortPathCfg::GetInstance())
#define  g_DelGuildescortPathCfgTable() (GuildescortPathCfg::Destroy())